import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  // { path: 'center', component: CenterComponent,
  //   children:[
  //       {
  //       path: 'investor/:id',
  //       component: InvestorComponent,
  //     }
  //   ] 
  // },
  // {
  //   path: 'center',
  //   loadChildren: () => import('./pages/center/center.module').then(m => m.CenterModule),
  //   canLoad: [AuthGuard]
  // },
//   { path: 'information',   redirectTo: '/information', pathMatch: 'full' },
//   { path: 'center',   redirectTo: '/center', pathMatch: 'full' },
  { path: 'home', redirectTo: '/home/index', pathMatch: 'full' },
  { path: '', redirectTo: '/home/index', pathMatch: 'full' }
];


@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [ RouterModule ]
})
export class AppRoutingModule { }
